package com.liuhaoqi.raletiveblog.service.Impl;

import com.liuhaoqi.raletiveblog.entity.Tag;
import com.liuhaoqi.raletiveblog.mapper.TagMapper;
import com.liuhaoqi.raletiveblog.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author liuhaoqi
 * @Date 2020/4/18 12:25
 * @Version 1.0
 */
@Service
public class TagServiceImpl implements TagService {
    @Autowired
    TagMapper tagMapper;

    @Override
    public int getTagsnum() {
        return tagMapper.getTagsnum();
    }

    @Override
    public List<Tag> getTagListByTagId(Long id) {
        return tagMapper.getTagListByTagId(id);
    }

    @Override
    public int insertTag(Tag tag) {
        return tagMapper.insertTag(tag);
    }

    @Override
    public List<Tag> getTagList() {
        return tagMapper.getTagList();
    }

}
